import rsa
import binascii


def test():
    pk, sk = rsa.newkeys(4096)
    print(pk.save_pkcs1('DER'))
    print(str(binascii.hexlify(sk.save_pkcs1('DER')), "utf-8"))


if __name__ == '__main__':
    test()